Sha256: ea8b1df975e3f51b57fdcb96bfc6ed88a4f9ec5673f353b521bd6d9e7a6fb80d
Contents?: true
Size: 864 Bytes
Versions: 9
Compression:
Stored size: 864 Bytes
Contents
class CreateLibraries < ActiveRecord::Migration[4.2] def change create_table :libraries do |t| t.string :name, 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.integer :library_group_id, default: 1, null: false t.integer :users_count, default: 0, null: false t.integer :position t.integer :country_id t.timestamps t.datetime :deleted_at end add_index :libraries, :library_group_id add_index :libraries, :name, unique: true end end
Version data entries
9 entries across 9 versions & 3 rubygems