Commit defb46ec by ivan Lan

Rename migrations

parent 08cf6027
class CreateMediaObjsAndMediaAttachments < ActiveRecord::Migration[5.1] class CreateWhalebackMediaObjsAndMediaAttachments < ActiveRecord::Migration[5.1]
def change def change
create_table :media_objs do |t| create_table :whaleback_media_objs do |t|
t.attachment :file t.attachment :file
t.string :type t.string :type
t.references :creator, polymorphic: true t.references :creator, polymorphic: true, index: { name: :whaleback_poly_creator }
t.timestamps t.timestamps
end end
create_table :media_attachments do |t| create_table :whaleback_media_attachments do |t|
t.string :column_name t.string :column_name
t.references :attached, polymorphic: true t.references :attached, polymorphic: true, index: { name: :whaleback_poly_attached }
t.references :obj t.references :obj
t.timestamps t.timestamps
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment