You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update wupee generator to support Rails 5. Currently the generator creates migration files like this:
class CreateWupeeNotificationTypes < ActiveRecord::Migration
def change
create_table :wupee_notification_types do |t|
t.string :name
t.timestamps null: false
end
add_index :wupee_notification_types, :name, unique: true
end
end
When they should be like this (note the [5.1]):
class CreateWupeeNotificationTypes < ActiveRecord::Migration[5.1]
def change
create_table :wupee_notification_types do |t|
t.string :name
t.timestamps null: false
end
add_index :wupee_notification_types, :name, unique: true
end
end
Also check index names length. They are being generated with a length > 63 which breaks on regular gem code base.
The text was updated successfully, but these errors were encountered:
tommyalvarez
changed the title
Migrations - Directly inheriting from ActiveRecord::Migration is not supported and Index name length
[1.1.4] Migrations - Directly inheriting from ActiveRecord::Migration is not supported and Index name length
Aug 16, 2018
Update wupee generator to support Rails 5. Currently the generator creates migration files like this:
When they should be like this (note the [5.1]):
Also check index names length. They are being generated with a length > 63 which breaks on regular gem code base.
The text was updated successfully, but these errors were encountered: