tab/db/migrate/20150908091028_devise_create_users.rb
2015-09-08 11:44:07 +02:00

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