Remove migrations warning
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for: class MigrationClass < ActiveRecord::Migration[4.2] (called from require at bin/rails:4)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class SetOrganizationNameLimit < ActiveRecord::Migration
|
||||
class SetOrganizationNameLimit < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
execute "ALTER TABLE organizations ALTER COLUMN name TYPE VARCHAR(60) USING SUBSTR(name, 1, 60)"
|
||||
change_column :organizations, :name, :string, limit: 60
|
||||
|
||||
Reference in New Issue
Block a user