Browse Source

Remove migration base class switcher from `RailsSettingsMigration` (#29047)

dariusk-working/4_3_0
Matt Jankowski 2 years ago committed by GitHub
parent
commit
0bec5c0755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      db/migrate/20161006213403_rails_settings_migration.rb

8
db/migrate/20161006213403_rails_settings_migration.rb

@ -1,12 +1,6 @@
# frozen_string_literal: true
MIGRATION_BASE_CLASS = if ActiveRecord::VERSION::MAJOR >= 5
ActiveRecord::Migration[5.0]
else
ActiveRecord::Migration[4.2]
end
class RailsSettingsMigration < MIGRATION_BASE_CLASS
class RailsSettingsMigration < ActiveRecord::Migration[5.0]
def self.up
create_table :settings do |t|
t.string :var, null: false

Loading…
Cancel
Save