Sha256: 97f09bcf28d20f136c3f488de662a03bed0939d292f4511ad6e9f2d1e587f247

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

class CreateOpenStaxConnectUsers < ActiveRecord::Migration
  def change
    create_table :openstax_connect_users do |t|
      t.integer :openstax_uid
      t.string  :first_name
      t.string  :last_name
      t.string  :username

      t.timestamps
    end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
openstax_connect-0.1.0 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.10 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.9 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.8 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.7 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.6 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.5 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.4 db/migrate/20130729213800_create_openstax_connect_users.rb
openstax_connect-0.0.3 db/migrate/20130729213800_create_openstax_connect_users.rb