Files
nairobi/db/migrate/20161117135624_create_legislation_processes.rb
Julian Herrero 65c30c8d2d Remove migrations warning
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration
is deprecated. Please specify the Rails release the migration was
written for:

class MigrationClass < ActiveRecord::Migration[4.2]

(called from require at bin/rails:4)
2019-04-17 17:40:56 +02:00

24 lines
708 B
Ruby

class CreateLegislationProcesses < ActiveRecord::Migration[4.2]
def change
create_table :legislation_processes do |t|
t.string :title
t.text :description
t.text :target
t.text :how_to_participate
t.text :additional_info
t.date :start_date, index: true
t.date :end_date, index: true
t.date :debate_start_date, index: true
t.date :debate_end_date, index: true
t.date :draft_publication_date, index: true
t.date :allegations_start_date, index: true
t.date :allegations_end_date, index: true
t.date :final_publication_date, index: true
t.datetime :hidden_at, index: true
t.timestamps null: false
end
end
end