tab/db/migrate/20150908091028_devise_create_users.rb
David Vandorpe eae4a3e99c
Fix for WiNA
2018-03-13 14:50:50 +01:00

15 lines
409 B
Ruby

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