Gab Social. All are welcome.
This commit is contained in:
7
db/migrate/20190607000211_add_group_id_to_statuses.rb
Normal file
7
db/migrate/20190607000211_add_group_id_to_statuses.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class AddGroupIdToStatuses < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
safety_assured {
|
||||
add_reference :statuses, :group, foreign_key: { on_delete: :nullify }
|
||||
}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user