Sha256: 449c9a865f89dcd2a0cafe74da8cf092cbfcd70367f71f06b0440fb251fc92c0

Contents?: true

Size: 321 Bytes

Versions: 16

Compression:

Stored size: 321 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

16 entries across 16 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.13.5 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.13.4 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.13.3 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.13.2 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.12.3 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.12.2 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.13.1 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.12.1 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.13.0 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.12.0 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.11.4 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.11.3 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.11.2 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.11.1 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb
fat_free_crm-0.11.0 db/migrate/20101221345678_add_rating_and_category_to_accounts.rb