db/migrate/20180509103150_add_participatory_processes.decidim_participatory_processes.rb
# frozen_string_literal: true
# This migration comes from decidim_participatory_processes (originally 20161005130108)
class AddParticipatoryProcesses < ActiveRecord::Migration[5.0]
def change
create_table :decidim_participatory_processes do |t|
t.string :title, null: false
t.string :slug, null: false, unique: true
t.string :hashtag, unique: true
t.string :subtitle, null: false
t.text :short_description, null: false
t.text :description, null: false
t.references :decidim_organization,
foreign_key: true,
index: { name: "index_decidim_processes_on_decidim_organization_id" }
t.timestamps
end
end
end