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

Version Path
typus-3.0.2 lib/generators/templates/migration.rb
typus-3.0.1 lib/generators/templates/migration.rb
typus-3.0.0 lib/generators/templates/migration.rb
typus-1.0.0.pre13 lib/generators/templates/migration.rb
typus-1.0.0.pre12 lib/generators/templates/migration.rb
typus-1.0.0.pre11 lib/generators/templates/migration.rb
typus-1.0.0.pre10 lib/generators/templates/migration.rb
typus-1.0.0.pre9 lib/generators/templates/migration.rb
typus-1.0.0.pre8 lib/generators/templates/migration.rb
typus-1.0.0.pre7 lib/generators/templates/migration.rb
typus-1.0.0.pre6 lib/generators/templates/migration.rb
typus-1.0.0.pre5 lib/generators/templates/migration.rb
typus-1.0.0.pre4 lib/generators/templates/migration.rb
typus-1.0.0.pre3 lib/generators/templates/migration.rb
typus-1.0.0.pre2 lib/generators/templates/migration.rb
typus-1.0.0.pre lib/generators/templates/migration.rb