Sha256: 4b33433a1618010de2b563bf6438de3207443db9b2b604b720018b4d91d06071

Contents?: true

Size: 490 Bytes

Versions: 18

Compression:

Stored size: 490 Bytes

Contents

class CreateOpenStaxAccountsGroups < ActiveRecord::Migration
  def change
    create_table :openstax_accounts_groups do |t|
      t.integer :openstax_uid, :null => false
      t.boolean :is_public, null: false, default: false
      t.string :name
      t.text :cached_subtree_group_ids
      t.text :cached_supertree_group_ids

      t.timestamps
    end

    add_index :openstax_accounts_groups, :openstax_uid, :unique => true
    add_index :openstax_accounts_groups, :is_public
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
openstax_accounts-6.1.4 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-6.1.3 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-6.1.2 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-6.1.1 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-6.1.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-6.0.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-5.2.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-5.1.2 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-5.1.1 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-5.1.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-5.0.1 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-5.0.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-4.1.1 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-4.1.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-4.0.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-3.1.1 db/migrate/20140811182433_create_openstax_accounts_groups.rb
openstax_accounts-3.1.0 db/migrate/20140811182433_create_openstax_accounts_groups.rb
openstax_accounts-3.0.0 db/migrate/20140811182433_create_openstax_accounts_groups.rb