diff options
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 |