forgeplus/db/migrate/20191220085002_create_compo...

16 lines
479 B
Ruby

class CreateComposes < ActiveRecord::Migration[5.2]
def change
# create_table :composes do |t|
# t.integer :user_id
# t.string :title
# t.text :description
# t.integer :show_mode, default: 0
# t.boolean :compose_mode, default: false
# t.integer :compose_users_count, default: 0
# t.integer :compose_projects_count , default: 0
# t.timestamps
# end
# add_index :composes, [:user_id,:show_mode,:compose_mode]
end
end