Sha256: a8391041ac30483239c901dc1d426633e1b84e7f559c368078c785cc71573db6

Contents?: true

Size: 773 Bytes

Versions: 22

Compression:

Stored size: 773 Bytes

Contents

class CreateOpenStaxAccountsAccounts < ActiveRecord::Migration[4.2]
  def change
    create_table :openstax_accounts_accounts do |t|
      t.integer :openstax_uid, null: false
      t.string  :username, null: false
      t.string  :access_token
      t.string  :first_name
      t.string  :last_name
      t.string  :full_name
      t.string  :title

      t.timestamps null: false
    end

    add_index :openstax_accounts_accounts, :openstax_uid, unique: true
    add_index :openstax_accounts_accounts, :username, unique: true
    add_index :openstax_accounts_accounts, :access_token, unique: true
    add_index :openstax_accounts_accounts, :first_name
    add_index :openstax_accounts_accounts, :last_name
    add_index :openstax_accounts_accounts, :full_name
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
openstax_accounts-9.9.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.8.1 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.8.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.7.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.6.1 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.6.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.5.1 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.5.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.4.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.3.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.0.5 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.0.4 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.2.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.0.3 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.1.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.0.2 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.0.1 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-9.0.0 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-8.1.1 db/migrate/0_create_openstax_accounts_accounts.rb
openstax_accounts-8.1.0 db/migrate/0_create_openstax_accounts_accounts.rb