forked from fixin.me/fixin.me
b6d2c19b0b
Move column defaults from migration strategy to migrations. Compact index creation inside migrations. Disable database schema generation.
11 lines
251 B
Ruby
11 lines
251 B
Ruby
class CreateUsers < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :users do |t|
|
|
t.string :email, null: false, limit: 2**6, index: {unique: true}
|
|
t.integer :status, null: false, default: 0
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|