File size: 153 Bytes
f5071ca |
1 2 3 4 5 6 7 |
class AddColumn < ActiveRecord::Migration[5.2]
def change
add_column :posts, :wall_id ,:integer,null:false
add_index :posts,:wall_id
end
end
|
f5071ca |
1 2 3 4 5 6 7 |
class AddColumn < ActiveRecord::Migration[5.2]
def change
add_column :posts, :wall_id ,:integer,null:false
add_index :posts,:wall_id
end
end
|