Sha256: 425dc335a06a4f66014ab746bb92ca8d1017cc6855a8a62ccfd6097cb3dd5f33

Contents?: true

Size: 323 Bytes

Versions: 11

Compression:

Stored size: 323 Bytes

Contents

class CreateTables < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :username, :null => false
      t.datetime :remember_created_at
      t.string :email
      t.timestamps
    end

    add_index :users, :username, :unique => true
  end

  def self.down
    drop_table :users
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
devise_cas_authenticatable-1.3.6 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.3.5 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.3.4 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.3.3 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.3.2 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.3.1 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.3.0 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.2.1 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.2.0 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.1.4 spec/scenario/db/migrate/20100401102949_create_tables.rb
devise_cas_authenticatable-1.1.3 spec/scenario/db/migrate/20100401102949_create_tables.rb