mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Create Problem model with reference to current translation
This commit is contained in:
1 parent
e13b82ad1f
commit
79ed82cfd8
6 files changed
+38
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
class CreateProblemsAgain < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :problems do |t|
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddTranslationToProblem < ActiveRecord::Migration
|
||||
def change
|
||||
add_reference :problems, :translation, index: true
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user