forgeplus/db/migrate/20191220085002_create_compo...

16 lines
479 B
Ruby
Raw Permalink Normal View History

2021-11-22 13:15:45 +08:00
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