Sha256: 7055b2b2426080642278db1fdef0f214a80c0e07a7216458fd93aaf69c8b1565

Contents?: true

Size: 876 Bytes

Versions: 12

Compression:

Stored size: 876 Bytes

Contents

class AddNotNullToPositionOnLibrary < ActiveRecord::Migration[5.2]
  def change
    change_column :libraries, :position, :integer,  null: false, default: 1
    change_column :shelves, :position, :integer,  null: false, default: 1
    change_column :library_groups, :position, :integer,  null: false, default: 1
    change_column :user_groups, :position, :integer,  null: false, default: 1
    change_column :bookstores, :position, :integer,  null: false, default: 1
    change_column :budget_types, :position, :integer,  null: false, default: 1
    change_column :colors, :position, :integer,  null: false, default: 1
    change_column :request_types, :position, :integer,  null: false, default: 1
    change_column :request_status_types, :position, :integer,  null: false, default: 1
    change_column :search_engines, :position, :integer,  null: false, default: 1
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
enju_message-0.3.4 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_event-0.3.5 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_seed-0.3.6 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_message-0.3.3 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_seed-0.3.5 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_message-0.3.2 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_event-0.3.4 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_seed-0.3.4 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_event-0.3.3 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_message-0.4.0.beta.2 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_message-0.4.0.beta.1 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb
enju_seed-0.3.3 spec/dummy/db/migrate/20181030074920_add_not_null_to_position_on_library.rb