Sha256: f717067afa99b240a2cb528a5ed6005d1454ed9af945473a36ec541b16ea3398

Contents?: true

Size: 630 Bytes

Versions: 30

Compression:

Stored size: 630 Bytes

Contents

class CreateTables < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :username
      t.string :facebook_token

      t.database_authenticatable :null => false
      t.confirmable
      t.recoverable
      t.rememberable
      t.trackable
      t.lockable
      t.token_authenticatable
      t.timestamps
    end

    create_table :admins do |t|
      t.database_authenticatable :null => true
      t.encryptable
      t.rememberable :use_salt => false
      t.recoverable
      t.lockable
      t.timestamps
    end
  end

  def self.down
    drop_table :users
    drop_table :admins
  end
end

Version data entries

30 entries across 29 versions & 6 rubygems

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.5.4/test/rails_app/db/migrate/20100401102949_create_tables.rb
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.2.1/test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.5.4 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.5.3 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.5.2 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.5.1 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.5.0 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.5.0.rc1 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.4.9 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.4.8 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.4.7 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.4.5 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.4.3 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.4.2 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.4.1 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.3.4 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.3.3 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.3.2 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.3.1 test/rails_app/db/migrate/20100401102949_create_tables.rb
devise-1.3.0 test/rails_app/db/migrate/20100401102949_create_tables.rb