Sha256: df3a01284b6896d2bf66ded3a9c45b1715305a061598af139f10c4971091adda

Contents?: true

Size: 347 Bytes

Versions: 7

Compression:

Stored size: 347 Bytes

Contents

class CreateDecidimOrganizations < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_organizations do |t|
      t.string :name, null: false
      t.string :host, null: false

      t.timestamps
    end

    add_index :decidim_organizations, :name, unique: true
    add_index :decidim_organizations, :host, unique: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.0.1.alpha9 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.1.alpha8 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.1.alpha7 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.1.alpha6 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.1.alpha5 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.1.alpha4 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.1.alpha3 db/migrate/20160919104837_create_decidim_organizations.rb