add column to existing table and new table for second display images
This commit is contained in:
14
db/migrate/20180213053009_create_display_images.rb
Normal file
14
db/migrate/20180213053009_create_display_images.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateDisplayImages < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :display_images do |t|
|
||||
t.integer :shop_id
|
||||
t.binary :image
|
||||
t.string :created_by
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
drop_table :display_images
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user