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