Sha256: 4fe75aef766eeef76befb08de5af69d0d18b81fe13ff74a61aa75d793b84717c
Contents?: true
Size: 581 Bytes
Versions: 8
Compression:
Stored size: 581 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
8 entries across 8 versions & 1 rubygems