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