Sha256: 8da78abca2005741a4d4c4aad1832f473581b1088287a9e3384576bb92c6409e

Contents?: true

Size: 2 KB

Versions: 60

Compression:

Stored size: 2 KB

Contents

class CreateManifestations < ActiveRecord::Migration
  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 :extent_id, :default => 1, :null => false
      t.integer :start_page
      t.integer :end_page
      t.integer :height
      t.integer :width
      t.integer :depth
      t.string :isbn
      t.string :isbn10
      t.string :wrong_isbn
      t.string :nbn
      t.string :lccn
      t.string :oclc_number
      t.string :issn
      t.integer :price # TODO: 通貨単位
      t.text :fulltext
      t.string :volume_number_list
      t.string :issue_number_list
      t.string :serial_number_list
      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.string :state
      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, :isbn
    add_index :manifestations, :nbn
    add_index :manifestations, :lccn
    add_index :manifestations, :oclc_number
    add_index :manifestations, :issn
    add_index :manifestations, :access_address
    #add_index :manifestations, :frequency_id
    add_index :manifestations, :manifestation_identifier
    add_index :manifestations, :updated_at
  end
end

Version data entries

60 entries across 60 versions & 4 rubygems

Version Path
enju_leaf-1.1.0.rc12 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre16 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc11 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc10 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre15 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc9 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre14 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc8 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc7 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre13 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc6 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre12 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc5 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc4 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre11 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre10 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc3 spec/dummy/db/migrate/005_create_manifestations.rb
enju_leaf-1.1.0.rc2 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre9 spec/dummy/db/migrate/005_create_manifestations.rb
enju_flower-0.1.0.pre8 spec/dummy/db/migrate/005_create_manifestations.rb