Sha256: d7d795ada17f14cedf4c4a58c979e4ce5e8067668cd23abcd14562ed0cd4cdfc

Contents?: true

Size: 523 Bytes

Versions: 9

Compression:

Stored size: 523 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.string :default_locale, null: false
      t.string :available_locales, array: true, default: []
      t.jsonb :welcome_text, null: false
      t.string :homepage_image

      t.timestamps
    end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.2.0 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.1.0 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.8.1 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.7 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.6 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.5 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.3 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.2 db/migrate/20160919104837_create_decidim_organizations.rb
decidim-core-0.0.1 db/migrate/20160919104837_create_decidim_organizations.rb