tab/db/migrate/20150908091028_devise_create_users.rb
2018-06-20 18:02:33 +02:00

11 lines
315 B
Ruby

class DeviseCreateUsers < ActiveRecord::Migration[5.0]
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