cirandas.net

ref: master

db/migrate/008_create_organization_infos.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class CreateOrganizationInfos < ActiveRecord::Migration
  def self.up
    create_table :organization_infos do |t|
      t.column :organization_id,           :integer
      t.column :contact_person,            :string
      t.column :contact_email,             :string
      t.column :acronym,                   :string
      t.column :foundation_year,           :integer, :limit => 4
      t.column :legal_form,                :string
      t.column :economic_activity,         :string
      t.column :management_information,    :string
      t.column :validated,                 :boolean, :default => false
    end
  end

  def self.down
    drop_table :organization_infos
  end
end