Sha256: 51c11930dde817c3843bdafdbef344d63cd858dcff4da08dc2f524a68558d638

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

class CreateProfiles < ActiveRecord::Migration[5.2]
  def change
    create_table :profiles do |t|
      t.references :user, index: true, foreign_key: true
      t.references :user_group, index: true
      t.references :library, index: true
      t.string :locale
      t.string :user_number
      t.text :full_name
      t.text :note
      t.text :keyword_list
      t.references :required_role, index: false

      t.timestamps
    end

    add_index :profiles, :user_number, unique: true
  end
end

Version data entries

8 entries across 8 versions & 8 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_message-0.4.0.rc.1 spec/dummy/db/migrate/20140122054321_create_profiles.rb
enju_seed-0.4.0.rc.2 db/migrate/20140122054321_create_profiles.rb