Sha256: 14a9a31d8d0c953e89504d98f2a163ea20b0e5abe6e7999df8551f2051f02be7

Contents?: true

Size: 688 Bytes

Versions: 44

Compression:

Stored size: 688 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
    add_index :<%= admin_users_table_name %>, :email, :unique => true
  end

  def self.down
    drop_table :<%= admin_users_table_name %>
  end

end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
typus-3.1.10 lib/generators/templates/migration.erb
typus-3.1.9 lib/generators/templates/migration.erb
typus-3.1.8 lib/generators/templates/migration.erb
typus-3.1.7 lib/generators/templates/migration.erb
typus-3.1.6 lib/generators/templates/migration.erb
typus-3.1.5 lib/generators/templates/migration.erb
typus-3.1.4 lib/generators/templates/migration.erb
typus-3.1.3 lib/generators/templates/migration.erb
typus-3.1.2 lib/generators/templates/migration.erb
typus-3.1.1 lib/generators/templates/migration.erb
typus-3.1.0 lib/generators/templates/migration.erb
typus-3.1.0.rc19 lib/generators/templates/migration.erb
typus-3.1.0.rc18 lib/generators/templates/migration.erb
typus-3.0.12 lib/generators/templates/migration.rb
typus-3.1.0.rc17 lib/generators/templates/migration.erb
typus-3.1.0.rc16 lib/generators/templates/migration.erb
typus-3.1.0.rc15 lib/generators/templates/migration.erb
typus-3.1.0.rc14 lib/generators/templates/migration.erb
typus-3.0.11 lib/generators/templates/migration.rb
typus-3.1.0.rc13 lib/generators/templates/migration.erb