diff options
author | David Gay <david@davidgay.org> | 2021-05-20 18:39:20 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-20 18:39:20 -0400 |
commit | b0998224427594acda8e4e8419a945c20c062568 (patch) | |
tree | 8da46effc1122281f4349f4800a12fd5076352d5 /db/migrate | |
parent | c25a079be25cc0aadf85119d97d8e1b9395b15fb (diff) |
Implement learned activities
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210520222335_create_learned_activities.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20210520222335_create_learned_activities.rb b/db/migrate/20210520222335_create_learned_activities.rb new file mode 100644 index 0000000..55d76f1 --- /dev/null +++ b/db/migrate/20210520222335_create_learned_activities.rb @@ -0,0 +1,12 @@ +class CreateLearnedActivities < ActiveRecord::Migration[6.1] + def change + create_table :learned_activities do |t| + t.references :character, null: false, foreign_key: true + t.references :activity, null: false, foreign_key: true + + t.timestamps + end + + add_column :activities, :innate, :boolean + end +end |