mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 09:39:04 +01:00
Remove migration base class switcher from RailsSettingsMigration
(#29047)
This commit is contained in:
parent
62028b1b1b
commit
0bec5c0755
1 changed files with 1 additions and 7 deletions
|
@ -1,12 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
MIGRATION_BASE_CLASS = if ActiveRecord::VERSION::MAJOR >= 5
|
class RailsSettingsMigration < ActiveRecord::Migration[5.0]
|
||||||
ActiveRecord::Migration[5.0]
|
|
||||||
else
|
|
||||||
ActiveRecord::Migration[4.2]
|
|
||||||
end
|
|
||||||
|
|
||||||
class RailsSettingsMigration < MIGRATION_BASE_CLASS
|
|
||||||
def self.up
|
def self.up
|
||||||
create_table :settings do |t|
|
create_table :settings do |t|
|
||||||
t.string :var, null: false
|
t.string :var, null: false
|
||||||
|
|
Loading…
Reference in a new issue