Sha256: 0b49340befee989610680e033e03f1518d55ac8dcab8de892a5d3ce687788926

Contents?: true

Size: 644 Bytes

Versions: 98

Compression:

Stored size: 644 Bytes

Contents

class CreateProfiles < ActiveRecord::Migration
  def self.up
    create_table :profiles do |t|
      t.string :first_name
      t.string :last_name
      t.string :email
      t.integer :updated_by
      t.boolean :is_disabled

      t.timestamps
    end

		# The System profile is used as the updated_by reference when records 
    # are created programatically and the responsible user cannot be determined 
    # or is simply not available.
		# TODO: Change email address
		Profile.create(:first_name => "System",
										:last_name => "User",
										:email => "system@a.com")

  end

  def self.down
    drop_table :profiles
  end
end

Version data entries

98 entries across 97 versions & 6 rubygems

Version Path
andrewzielinski-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
blaxter-lockdown-0.9.8.99 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
blaxter-lockdown-0.9.9 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
hone-lockdown-1.2.1 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
hone-lockdown-1.2.2 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
hone-lockdown-1.2.3 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
revo-lockdown-0.9.6 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown_vail-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.6.5 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
revo-lockdown-1.6.2.2 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.6.4 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.6.3 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
revo-lockdown-1.6.2.1 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
revo-lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.6.2 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.6.1 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.6.0 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.5.1 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.5.0 rails_generators/lockdown/templates/db/migrate/create_profiles.rb
lockdown-1.3.2 rails_generators/lockdown/templates/db/migrate/create_profiles.rb