Sha256: 57da10b26ae4f8778c3891239078505f91b401ef06654ed45fa3d71959ca4161

Contents?: true

Size: 771 Bytes

Versions: 19

Compression:

Stored size: 771 Bytes

Contents

class CreateOpenStaxAccountsAccounts < ActiveRecord::Migration
  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
    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

19 entries across 19 versions & 1 rubygems

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