tab/db/migrate/20150908091028_devise_create_users.rb

12 lines
315 B
Ruby
Raw Normal View History

2018-06-20 18:02:33 +02:00
class DeviseCreateUsers < ActiveRecord::Migration[5.0]
2015-09-08 11:30:11 +02:00
def change
create_table(:users) do |t|
t.string :name, index: true, unique: true
2015-09-08 11:44:07 +02:00
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