Sha256: 2e8625059aa564b3998f9c50d7d6df9b48b6fb555bfd10178b91142872b820f3

Contents?: true

Size: 316 Bytes

Versions: 13

Compression:

Stored size: 316 Bytes

Contents

class CreateProfessions < ActiveRecord::Migration
  def change
    create_table :professions do |t|
      t.string :name
      t.string :slug
      t.timestamps
    end
    
    remove_column :users, :profession, :string
    add_column :users, :profession_id, :integer
    add_index :users, :profession_id
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
voluntary-0.7.1 db/migrate/20121004132105_create_professions.rb
voluntary-0.7.0 db/migrate/20121004132105_create_professions.rb
voluntary-0.6.0 db/migrate/20121004132105_create_professions.rb
voluntary-0.5.2 db/migrate/20121004132105_create_professions.rb
voluntary-0.5.1 db/migrate/20121004132105_create_professions.rb
voluntary-0.5.0 db/migrate/20121004132105_create_professions.rb
voluntary-0.4.0 db/migrate/20121004132105_create_professions.rb
voluntary-0.3.0 db/migrate/20121004132105_create_professions.rb
voluntary-0.2.4 db/migrate/20121004132105_create_professions.rb
voluntary-0.2.3 db/migrate/20121004132105_create_professions.rb
voluntary-0.2.2 db/migrate/20121004132105_create_professions.rb
voluntary-0.2.1 db/migrate/20121004132105_create_professions.rb
voluntary-0.2.0 db/migrate/20121004132105_create_professions.rb