Sha256: 1f5cfcff9900b180dbec7d81adf7d12ac5d0434d4b4e197ef3ad5d24f592fbd1

Contents?: true

Size: 311 Bytes

Versions: 7

Compression:

Stored size: 311 Bytes

Contents

class AddRatingAndCategoryToAccounts < ActiveRecord::Migration
  def self.up
    add_column :accounts, :rating, :integer, default: 0, null: false
    add_column :accounts, :category, :string, limit: 32
  end

  def self.down
    remove_column :accounts, :category
    remove_column :accounts, :rating
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.14.1 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.15.0.beta.2 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.15.0.beta db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.14.0 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
reduced_fat_crm-0.15.0.beta db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
reduced_fat_crm-0.14.0 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb