Sha256: 7291c346d27054794c11b2117e417d0e6ca67dacb4278d295c5f843d815fe131

Contents?: true

Size: 425 Bytes

Versions: 19

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true
class UpgradeV03ToV04 < ActiveRecord::Migration
  def up
    create_table :thredded_messageboard_groups do |t|
      t.string :name
      t.timestamps null: false
    end

    add_column :thredded_messageboards, :messageboard_group_id, :integer
    add_index :thredded_messageboards, [:messageboard_group_id],
              name: :index_thredded_messageboards_on_messageboard_group_id
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
thredded-0.12.1 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.12.0 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.11.1 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.11.0 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.10.1 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.10.0 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.9.4 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.9.3 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.9.2 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.9.1 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.8.4 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.8.2 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.7.0 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.6.3 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.6.2 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.6.1 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.6.0 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.5.1 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb
thredded-0.5.0 db/upgrade_migrations/20160429222452_upgrade_v0_3_to_v0_4.rb