Sha256: 3cbb7742cbd217994c5fc5cc6918b6a15aa2e4dea747b80f02438fb827fae242

Contents?: true

Size: 1.59 KB

Versions: 124

Compression:

Stored size: 1.59 KB

Contents

class CreateManifestations < ActiveRecord::Migration[4.2]
  def change
    create_table :manifestations do |t|
      t.text :original_title, null: false
      t.text :title_alternative
      t.text :title_transcription
      t.string :classification_number
      t.string :manifestation_identifier
      t.datetime :date_of_publication
      t.datetime :copyright_date
      t.timestamps
      t.datetime :deleted_at
      t.string :access_address
      t.integer :language_id, default: 1, null: false
      t.integer :carrier_type_id, default: 1, null: false
      t.integer :start_page
      t.integer :end_page
      t.integer :height
      t.integer :width
      t.integer :depth
      t.integer :price # TODO: 通貨単位
      t.text :fulltext
      t.string :volume_number_string
      t.string :issue_number_string
      t.string :serial_number_string
      t.integer :edition
      t.text :note
      t.boolean :repository_content, default: false, null: false
      t.integer :lock_version, default: 0, null: false
      t.integer :required_role_id, default: 1, null: false
      t.integer :required_score, default: 0, null: false
      t.integer :frequency_id, default: 1, null: false
      t.boolean :subscription_master, default: false, null: false
    end
    #add_index :manifestations, :carrier_type_id
    #add_index :manifestations, :required_role_id
    add_index :manifestations, :access_address
    #add_index :manifestations, :frequency_id
    add_index :manifestations, :manifestation_identifier
    add_index :manifestations, :updated_at
    add_index :manifestations, :date_of_publication
  end
end

Version data entries

124 entries across 124 versions & 18 rubygems

Version Path
enju_biblio-0.3.18 db/migrate/005_create_manifestations.rb
enju_biblio-0.3.17 db/migrate/005_create_manifestations.rb
enju_biblio-0.3.16 db/migrate/005_create_manifestations.rb
enju_circulation-0.3.11 spec/dummy/db/migrate/005_create_manifestations.rb
enju_biblio-0.3.15 db/migrate/005_create_manifestations.rb
enju_library-0.3.11 spec/dummy/db/migrate/005_create_manifestations.rb
enju_ndl-0.3.3 spec/dummy/db/migrate/005_create_manifestations.rb
enju_nii-0.3.2 spec/dummy/db/migrate/005_create_manifestations.rb
enju_loc-0.3.1 spec/dummy/db/migrate/005_create_manifestations.rb
enju_subject-0.3.4 spec/dummy/db/migrate/005_create_manifestations.rb
enju_circulation-0.3.10 spec/dummy/db/migrate/005_create_manifestations.rb
enju_library-0.3.10 spec/dummy/db/migrate/005_create_manifestations.rb
enju_biblio-0.3.14 db/migrate/005_create_manifestations.rb
enju_message-0.3.4 spec/dummy/db/migrate/005_create_manifestations.rb
enju_event-0.3.5 spec/dummy/db/migrate/005_create_manifestations.rb
enju_bookmark-0.3.2 spec/dummy/db/migrate/005_create_manifestations.rb
enju_seed-0.3.6 spec/dummy/db/migrate/005_create_manifestations.rb
enju_biblio-0.3.13 db/migrate/005_create_manifestations.rb
enju_circulation-0.3.9 spec/dummy/db/migrate/005_create_manifestations.rb
enju_biblio-0.3.12 db/migrate/005_create_manifestations.rb