Sha256: 06f3cca73ee8decb7461cf72c38b9148edb74117604332b456b9413a470771f1
Contents?: true
Size: 650 Bytes
Versions: 14
Compression:
Stored size: 650 Bytes
Contents
class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :<%= admin_users_table_name %> do |t| t.string :first_name, :default => "", :null => false t.string :last_name, :default => "", :null => false t.string :role, :null => false t.string :email, :null => false t.boolean :status, :default => false t.string :token, :null => false t.string :password_digest, :null => false t.string :preferences t.timestamps end add_index :<%= admin_users_table_name %>, :email, :unique => true end def self.down drop_table :<%= admin_users_table_name %> end end
Version data entries
14 entries across 14 versions & 2 rubygems