2015-09-08 11:30:11 +02:00
|
|
|
class DeviseCreateUsers < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table(:users) do |t|
|
2015-09-08 11:44:07 +02:00
|
|
|
t.string :name, index: true, unique: true
|
|
|
|
t.integer :balance, null: false, default: 0, index: true
|
|
|
|
t.boolean :penning, null: false, default: false
|
2015-09-08 11:30:11 +02:00
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|