You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
292 B
14 lines
292 B
5 years ago
|
class CreateHackSets < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :hack_sets do |t|
|
||
|
t.references :hack
|
||
|
t.text :input
|
||
|
t.text :output
|
||
|
t.integer :position
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :hack_sets, [:hack_id, :position], unique: true
|
||
|
end
|
||
|
end
|