Class: CreateAccounts
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAccounts
- Defined in:
- lib/generators/oxen_account/templates/account.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/oxen_account/templates/account.rb', line 2 def change create_table :accounts do |t| t.string :name t.string :default_url t.text :logo ## manageable t.boolean :active t.integer :lock_version ## chargeable t.boolean :chargeable, null: false, default: true t.datetime :last_charged_at t.integer :free_users, null: false, default: 0 t. null: false end end |