Sha256: 3dfc3d5054f9823659ed1e0d76020a27e5303baf88ab3b4e790b287a0769b2a3
Contents?: true
Size: 689 Bytes
Versions: 64
Compression:
Stored size: 689 Bytes
Contents
class AddFieldsToProfiles < ActiveRecord::Migration def self.up add_column :profiles, :about, :text add_column :profiles, :first_name, :string add_column :profiles, :last_name, :string add_column :profiles, :city, :string add_column :profiles, :state_id, :integer add_column :profiles, :country_id, :integer add_column :profiles, :language_id, :integer end def self.down remove_column :profiles, :about remove_column :profiles, :first_name remove_column :profiles, :last_name remove_column :profiles, :city remove_column :profiles, :state_id remove_column :profiles, :country_id remove_column :profiles, :language_id end end
Version data entries
64 entries across 55 versions & 10 rubygems