Sha256: 8cc0aa6531cd3164ccba44aeceba0c933eed2f61524fa450dd44f8b6972cd18a

Contents?: true

Size: 759 Bytes

Versions: 10

Compression:

Stored size: 759 Bytes

Contents

class CreateLibraries < ActiveRecord::Migration[5.2]
  def change
    create_table :libraries do |t|
      t.string :name, index: true, null: false
      t.text :display_name
      t.string :short_display_name, null: false
      t.string :zip_code
      t.text :street
      t.text :locality
      t.text :region
      t.string :telephone_number_1
      t.string :telephone_number_2
      t.string :fax_number
      t.text :note
      t.integer :call_number_rows, default: 1, null: false
      t.string :call_number_delimiter, default: "|", null: false
      t.references :library_group, index: true, null: false
      t.integer :users_count, default: 0, null: false
      t.integer :position
      t.references :country

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 10 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_message-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_biblio-0.4.0.rc.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_library-0.4.0.rc.1 db/migrate/059_create_libraries.rb
enju_seed-0.4.0.rc.2 spec/dummy/db/migrate/059_create_libraries.rb