Sha256: cb762954191925bd74343f6e4152b096db279d896e316d92e1435cdbac985de2

Contents?: true

Size: 783 Bytes

Versions: 34

Compression:

Stored size: 783 Bytes

Contents

class CreateLibraries < ActiveRecord::Migration
  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
      t.datetime :deleted_at
    end
  end
end

Version data entries

34 entries across 30 versions & 13 rubygems

Version Path
enju_leaf-1.2.2 spec/dummy/db/migrate/059_create_libraries.rb
enju_manifestation_viewer-0.2.4 spec/dummy/db/migrate/059_create_libraries.rb
enju_library-0.2.5 db/migrate/059_create_libraries.rb
enju_manifestation_viewer-0.2.3 spec/dummy/db/migrate/059_create_libraries.rb
enju_biblio-0.2.5 spec/dummy/db/migrate/059_create_libraries.rb
enju_bookmark-0.2.2 spec/dummy/db/migrate/059_create_libraries.rb
enju_purchase_request-0.2.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/059_create_libraries.rb
enju_message-0.2.4 spec/dummy/db/migrate/059_create_libraries.rb
enju_event-0.2.3 spec/dummy/db/migrate/059_create_libraries.rb
enju_circulation-0.2.5 spec/dummy/db/migrate/059_create_libraries.rb
enju_seed-0.2.3 spec/dummy/db/migrate/059_create_libraries.rb
enju_library-0.2.4 db/migrate/059_create_libraries.rb
enju_bookmark-0.2.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_library-0.2.3 db/migrate/059_create_libraries.rb
enju_seed-0.2.2 spec/dummy/db/migrate/059_create_libraries.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/059_create_libraries.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/059_create_libraries.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/059_create_libraries.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/db/migrate/059_create_libraries.rb