diff options
Diffstat (limited to 'db/migrate/20210529195809_create_states.rb')
-rw-r--r-- | db/migrate/20210529195809_create_states.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20210529195809_create_states.rb b/db/migrate/20210529195809_create_states.rb new file mode 100644 index 0000000..6922e0a --- /dev/null +++ b/db/migrate/20210529195809_create_states.rb @@ -0,0 +1,11 @@ +class CreateStates < ActiveRecord::Migration[6.1] + def change + create_table :states do |t| + t.references :character, null: false, foreign_key: true + t.references :condition, null: false, foreign_key: true + t.timestamp :expires_at + + t.timestamps + end + end +end |