Sha256: d310abecfdcfc5cdf2a99e8ac1b655b1165ac7e72502241cd6063abf0fbad0d7

Contents?: true

Size: 496 Bytes

Versions: 12

Compression:

Stored size: 496 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 null: false
    end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
openstax_accounts-7.13.1 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.13.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.12.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.11.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.10.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.9.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.8.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.7.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.6.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.5.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.4.0 db/migrate/1_create_openstax_accounts_groups.rb
openstax_accounts-7.3.0 db/migrate/1_create_openstax_accounts_groups.rb