Sha256: e3b1a5b97b3be808e9a13f55702b89a798027d83552cdfc2f6b05ff1345e59ac
Contents?: true
Size: 618 Bytes
Versions: 16
Compression:
Stored size: 618 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 :salt, :null => false t.string :crypted_password, :null => false t.string :preferences t.timestamps end end def self.down drop_table :<%= admin_users_table_name %> end end
Version data entries
16 entries across 16 versions & 1 rubygems