Sha256: 2693ff6591bd466ddf59a84c6399894ddfd7f461b047a7e118aeb376047d14db
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
class TranslateProps < ActiveRecord::Migration[5.0] def self.up Pwb::Prop.create_translation_table!({ title: {type: :string, default: ''}, description: {type: :text, default: ''} # null false below was creating errors when a new prop was created with no title # :title => {:type => :string, :null => false, :default => ''}, # :description => {:type => :text, :null => false, :default => ''} }, { migrate_data: true }) end def self.down Pwb::Prop.drop_translation_table! migrate_data: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pwb-1.4.0 | db/migrate/20161120122914_translate_props.rb |