Sha256: a74a91fe5b06f04b6f78c5d3f4e1bc9945fece4b60fe3f7fcd4bab2d60a32007

Contents?: true

Size: 606 Bytes

Versions: 17

Compression:

Stored size: 606 Bytes

Contents

class SorceryCore < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :name
#       t.string :username,         :null => false  # if you use another field as a username, for example email, you can safely remove this field.
      t.string :email,            default: nil # if you use this field as a username, you might want to make it :null => false.
      t.string :crypted_password, default: nil
      t.string :salt,             default: nil

      t.timestamps
    end

    add_index :users, :email, unique: true
  end

  def self.down
    drop_table :users
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
raygun-0.0.34 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.34.pre2 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.33 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.32 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.31 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.30 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.29 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.28 rails_32/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.27 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.26 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.25 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.24 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.23 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.22 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.21 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.18 app_prototype/db/migrate/20121128215324_sorcery_core.rb
raygun-0.0.17 app_prototype/db/migrate/20121128215324_sorcery_core.rb