Sha256: 1d872bafe3dbede0045a4a6ce465e0156999555a8d22317d7d5b82866ce60aa7

Contents?: true

Size: 675 Bytes

Versions: 52

Compression:

Stored size: 675 Bytes

Contents

class CreateSubjects < ActiveRecord::Migration[4.2]
  def self.up
    create_table :subjects do |t|
      t.references :parent, index: true
      t.integer :use_term_id
      t.string :term
      t.text :term_transcription
      t.references :subject_type, index: true, null: false
      t.text :scope_note
      t.text :note
      t.references :required_role, index: true, default: 1, null: false
      t.integer :lock_version, default: 0, null: false
      t.datetime :created_at
      t.datetime :updated_at
      t.datetime :deleted_at
    end
    add_index :subjects, :term
    add_index :subjects, :use_term_id
  end

  def self.down
    drop_table :subjects
  end
end

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
enju_biblio-0.3.18 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.17 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.16 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.15 spec/dummy/db/migrate/029_create_subjects.rb
enju_library-0.3.11 spec/dummy/db/migrate/029_create_subjects.rb
enju_subject-0.3.4 db/migrate/029_create_subjects.rb
enju_library-0.3.10 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.14 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.13 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.12 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.11 spec/dummy/db/migrate/029_create_subjects.rb
enju_library-0.3.9 spec/dummy/db/migrate/029_create_subjects.rb
enju_subject-0.3.3 db/migrate/029_create_subjects.rb
enju_biblio-0.3.10 spec/dummy/db/migrate/029_create_subjects.rb
enju_library-0.3.8 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.10.rc.3 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.10.rc.2 spec/dummy/db/migrate/029_create_subjects.rb
enju_library-0.3.8.rc.2 spec/dummy/db/migrate/029_create_subjects.rb
enju_library-0.3.8.rc.1 spec/dummy/db/migrate/029_create_subjects.rb
enju_biblio-0.3.10.rc.1 spec/dummy/db/migrate/029_create_subjects.rb