Sha256: 50d952030310f339cfe9199447b51d5026504fff5987497a571e3817795f0ff4

Contents?: true

Size: 462 Bytes

Versions: 12

Compression:

Stored size: 462 Bytes

Contents

class CreateAccounts < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.establish_connection :users
    create_table :accounts do |t|
      t.column :password, :string, :null => false
      t.column :active, :boolean
      t.column :activation_key, :string
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end
  end

  def self.down
    ActiveRecord::Base.establish_connection :users
    drop_table :accounts
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ae_users_legacy-0.6.14 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.13 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.12 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.11 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.10 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.9 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.8 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.7 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.6 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.5 db/migrate/002_create_accounts.rb
ae_users_legacy-0.6.3 db/migrate/002_create_accounts.rb
ae_users-0.6.0 db/migrate/002_create_accounts.rb