File size: 176 Bytes
f5071ca |
1 2 3 4 5 6 7 |
class AddRecipientToPosts < ActiveRecord::Migration[5.1]
def change
add_column :posts, :recipient_id, :integer, null: false
add_index :posts, :recipient_id
end
end
|
f5071ca |
1 2 3 4 5 6 7 |
class AddRecipientToPosts < ActiveRecord::Migration[5.1]
def change
add_column :posts, :recipient_id, :integer, null: false
add_index :posts, :recipient_id
end
end
|