This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/db/migrate/023_create_contacts_settings.rb
2012-01-03 16:18:32 +00:00

16 lines
367 B
Ruby

class CreateContactsSettings < ActiveRecord::Migration
def self.up
create_table :contacts_settings do |t|
t.column :name, :string
t.column :value, :text
t.column :project_id, :integer
t.column :updated_on, :datetime
end
add_index :contacts_settings, :project_id
end
def self.down
drop_table :contacts_settings
end
end