Sha256: 1497dca8ef4f2832a80c63313da7ba20e7db89edd3592a30dd433f4448ad2019

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

class CreateOpenStaxAccountsUsers < ActiveRecord::Migration
  def change
    create_table :openstax_accounts_users do |t|
      t.integer :openstax_uid
      t.string  :username
      t.string  :first_name
      t.string  :last_name
      t.string  :full_name
      t.string  :title
      t.string  :access_token

      t.timestamps
    end

    add_index :openstax_accounts_users, :openstax_uid, :unique => true
    add_index :openstax_accounts_users, :username, :unique => true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openstax_accounts-1.0.0 db/migrate/0_create_openstax_accounts_users.rb
openstax_accounts-0.3.0 db/migrate/0_create_openstax_accounts_users.rb
openstax_accounts-0.3 db/migrate/0_create_openstax_accounts_users.rb
openstax_accounts-0.2.1 db/migrate/0_create_openstax_accounts_users.rb
openstax_accounts-0.2.0 db/migrate/0_create_openstax_accounts_users.rb
openstax_accounts-0.1.0 db/migrate/0_create_openstax_accounts_users.rb