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.
the_sins_we_commit/db/migrate/20151029180427_create_trans...

14 lines
334 B

class CreateTransgressions < ActiveRecord::Migration
def change
create_table :transgressions do |t|
t.references :user, index: true, foreign_key: true
t.string :description, null: false
t.string :sin_type, null: false
t.timestamps null: false
end
add_index :transgressions, :sin_type
end
end