Description:
updated db/schema.rb: removed unused tables
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r277:f3c97d6285dc - - 3 files changed: 10 inserted, 34 deleted
@@ -19,20 +19,12 | |||
|
19 | 19 | t.datetime "updated_at" |
|
20 | 20 | t.boolean "frontpage", :default => false |
|
21 | 21 | t.boolean "contest_only", :default => false |
|
22 | 22 | t.string "title" |
|
23 | 23 | end |
|
24 | 24 | |
|
25 | - create_table "codejom_statuses", :force => true do |t| | |
|
26 | - t.integer "user_id" | |
|
27 | - t.boolean "alive" | |
|
28 | - t.integer "num_problems_passed" | |
|
29 | - t.datetime "created_at" | |
|
30 | - t.datetime "updated_at" | |
|
31 | - end | |
|
32 | - | |
|
33 | 25 | create_table "configurations", :force => true do |t| |
|
34 | 26 | t.string "key" |
|
35 | 27 | t.string "value_type" |
|
36 | 28 | t.string "value" |
|
37 | 29 | t.datetime "created_at" |
|
38 | 30 | t.datetime "updated_at" |
@@ -153,21 +145,12 | |||
|
153 | 145 | t.datetime "created_at" |
|
154 | 146 | t.datetime "updated_at" |
|
155 | 147 | t.integer "country_id" |
|
156 | 148 | t.string "password" |
|
157 | 149 | end |
|
158 | 150 | |
|
159 | - create_table "submission_statuses", :force => true do |t| | |
|
160 | - t.integer "user_id" | |
|
161 | - t.integer "problem_id" | |
|
162 | - t.boolean "passed" | |
|
163 | - t.integer "submission_count" | |
|
164 | - t.datetime "created_at" | |
|
165 | - t.datetime "updated_at" | |
|
166 | - end | |
|
167 | - | |
|
168 | 151 | create_table "submissions", :force => true do |t| |
|
169 | 152 | t.integer "user_id" |
|
170 | 153 | t.integer "problem_id" |
|
171 | 154 | t.integer "language_id" |
|
172 | 155 | t.text "source" |
|
173 | 156 | t.binary "binary" |
@@ -188,23 +171,12 | |||
|
188 | 171 | t.integer "submission_id" |
|
189 | 172 | t.datetime "created_at" |
|
190 | 173 | t.integer "status" |
|
191 | 174 | t.datetime "updated_at" |
|
192 | 175 | end |
|
193 | 176 | |
|
194 | - create_table "test_pair_assignments", :force => true do |t| | |
|
195 | - t.integer "user_id" | |
|
196 | - t.integer "problem_id" | |
|
197 | - t.integer "test_pair_id" | |
|
198 | - t.integer "test_pair_number" | |
|
199 | - t.integer "request_number" | |
|
200 | - t.datetime "created_at" | |
|
201 | - t.datetime "updated_at" | |
|
202 | - t.boolean "submitted" | |
|
203 | - end | |
|
204 | - | |
|
205 | 177 | create_table "test_pairs", :force => true do |t| |
|
206 | 178 | t.integer "problem_id" |
|
207 | 179 | t.text "input", :limit => 16777215 |
|
208 | 180 | t.text "solution", :limit => 16777215 |
|
209 | 181 | t.datetime "created_at" |
|
210 | 182 | t.datetime "updated_at" |
@@ -1,9 +1,13 | |||
|
1 | 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
|
2 | 2 | |
|
3 | - one: | |
|
4 | - title: MyString | |
|
5 |
- enabled: |
|
|
3 | + contest_a: | |
|
4 | + title: Contest A | |
|
5 | + enabled: true | |
|
6 | 6 | |
|
7 | - two: | |
|
8 | - title: MyString | |
|
7 | + contest_b: | |
|
8 | + title: Contest B | |
|
9 | + enabled: true | |
|
10 | + | |
|
11 | + contest_c: | |
|
12 | + title: Contest C | |
|
9 | 13 | enabled: false |
@@ -13,13 +13,13 | |||
|
13 | 13 | # |
|
14 | 14 | # Every Active Record database supports transactions except MyISAM tables |
|
15 | 15 | # in MySQL. Turn off transactional fixtures in this case; however, if you |
|
16 | 16 | # don't care one way or the other, switching from MyISAM to InnoDB tables |
|
17 | 17 | # is recommended. |
|
18 | 18 | |
|
19 |
- self.use_transactional_fixtures = |
|
|
19 | + self.use_transactional_fixtures = true | |
|
20 | 20 | |
|
21 | 21 | # Instantiated fixtures are slow, but give you @david where otherwise you |
|
22 | 22 | # would need people(:david). If you don't want to migrate your existing |
|
23 | 23 | # test cases which use the @david style and don't mind the speed hit (each |
|
24 | 24 | # instantiated fixtures translates to a database query per test method), |
|
25 | 25 | # then set this back to true. |
You need to be logged in to leave comments.
Login now