11 lines
310 B
Ruby
11 lines
310 B
Ruby
class DeviseCreateUsers < ActiveRecord::Migration
|
|
def change
|
|
create_table(:users) do |t|
|
|
t.string :name, index: true, unique: true
|
|
t.integer :balance, null: false, default: 0, index: true
|
|
t.boolean :penning, null: false, default: false
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|