Sha256: 14c88dbb45dd17cd4222b485296c04fb1c36458949428650b3f280b8fac970ef

Contents?: true

Size: 466 Bytes

Versions: 9

Compression:

Stored size: 466 Bytes

Contents

class CreateProfiles < ActiveRecord::Migration[4.2]
  def change
    create_table :profiles do |t|
      t.integer :user_id
      t.integer :user_group_id
      t.integer :library_id
      t.string :locale
      t.string :user_number
      t.text :full_name
      t.text :note
      t.text :keyword_list
      t.integer :required_role_id

      t.timestamps
    end

    add_index :profiles, :user_id
    add_index :profiles, :user_number, :unique => true
  end
end

Version data entries

9 entries across 9 versions & 5 rubygems

Version Path
enju_purchase_request-0.3.2 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_loc-0.3.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_purchase_request-0.3.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_loc-0.3.0 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_search_log-0.3.0.beta.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_purchase_request-0.3.0.beta.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_loc-0.3.0.beta.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_manifestation_viewer-0.3.0.beta.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb