Sha256: ab4af83c954adcb3dfa19ba95d4fbd8d580771877d02a30dfc563cc6474f2927
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
class FreeberryCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |t| t.string :name, :limit => 150 # t.string :login, :limit => 20, :null => false t.database_authenticatable :null => false t.recoverable t.rememberable t.trackable t.confirmable t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :time # t.token_authenticatable t.timestamps end add_index :users, :email, :unique => true add_index :users, :reset_password_token, :unique => true add_index :users, :confirmation_token, :unique => true # add_index :users, :login, :unique => true # add_index :users, :unlock_token, :unique => true end def self.down drop_table :users end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
freeberry-0.3.0 | lib/generators/freeberry/models/templates/create_users.rb |
freeberry-0.2.9 | lib/generators/freeberry/models/templates/create_users.rb |