cirandas.net

ref: master

db/migrate/015_create_validation_infos.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
class CreateValidationInfos < ActiveRecord::Migration
  def self.up
    create_table :validation_infos do |t|
      t.column :validation_methodology, :text
      t.column :restrictions, :text

      # foreign keys
      t.column :organization_id, :integer
    end
  end

  def self.down
    drop_table :validation_infos
  end
end