agenda-libre-ruby/db/migrate/20150215172739_add_data_to_orgas.rb

16 lines
586 B
Ruby
Raw Normal View History

# The relation between orga and their kind
class AddDataToOrgas < ActiveRecord::Migration
def change
add_reference :orgas, :kind, index: true
add_foreign_key :orgas, :kinds
add_column :orgas, :feed, :string
add_column :orgas, :contact, :string
add_column :orgas, :submitter, :string
add_column :orgas, :moderated, :boolean, default: false
add_column :orgas, :submission_time, :datetime
add_column :orgas, :decision_time, :datetime
add_column :orgas, :secret, :string
add_column :orgas, :deleted, :boolean, default: false, null: false
end
end