Sha256: 1353e04cf9a11d27b30c9b6b0eb9420d8ad2f1153c0e92785f7c87b26ac91700
Contents?: true
Size: 463 Bytes
Versions: 475
Compression:
Stored size: 463 Bytes
Contents
class CreateMessageTemplates < ActiveRecord::Migration def self.up create_table :message_templates do |t| t.string :status, :null => false t.text :title, :null => false t.text :body, :null => false t.integer :position t.string :locale, :default => I18n.default_locale.to_s t.timestamps end add_index :message_templates, :status, :unique => true end def self.down drop_table :message_templates end end
Version data entries
475 entries across 468 versions & 22 rubygems