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.
educoder/db/migrate/20191111100954_create_hack_...

14 lines
292 B

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