Sha256: fff919b14f7d169a315c08145dc21de5aec448bb08e1ea319672b351303a5a4e

Contents?: true

Size: 801 Bytes

Versions: 11

Compression:

Stored size: 801 Bytes

Contents

class CreateMyAdminUsers < ActiveRecord::Migration

  def self.up
    create_table :my_admin_users do |t|
      t.string :first_name, :default => "", :null => false
      t.string :last_name, :default => "", :null => false
      t.string :username, :default => "", :null => false
      t.boolean :superuser, :default => false, :null => false
      t.string :email, :null => false
      t.boolean :active, :default => true, :null => false
      t.string :salt, :null => false
      t.string :encrypted_password, :null => false
      
      t.string :photo_file_name
      t.string :photo_content_type
      t.integer :photo_file_size
      t.datetime :photo_updated_at
      t.string :encrypted_recover
      
      t.timestamps
    end
  end

  def self.down
    drop_table :my_admin_users
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
my_admin-0.0.12 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.11 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.10 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.9 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.8 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.7 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.6 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.5 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.4 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.3 lib/generators/my_admin/install/templates/migrations/users.rb
my_admin-0.0.2 lib/generators/my_admin/install/templates/migrations/users.rb