db/migrate/20170720201601_translate_links.rb in pwb-1.3.0 vs db/migrate/20170720201601_translate_links.rb in pwb-1.4.0
- old
+ new
@@ -1,13 +1,13 @@
class TranslateLinks < ActiveRecord::Migration[5.0]
def self.up
Pwb::Link.create_translation_table!({
- :link_title => {:type => :string, :default => ''}
+ link_title: {type: :string, default: ''}
}, {
- :migrate_data => true
+ migrate_data: true
})
end
def self.down
- Pwb::Link.drop_translation_table! :migrate_data => true
+ Pwb::Link.drop_translation_table! migrate_data: true
end
end