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

Version Path
enju_library-0.2.0.beta.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.0.beta.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.1.4 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.1.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.1.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_circulation-0.1.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_event-0.1.19 spec/dummy/db/migrate/149_create_message_templates.rb
enju_message-0.1.16 db/migrate/149_create_message_templates.rb
enju_leaf-1.1.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_bookmark-0.1.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.1.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.1.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_circulation-0.1.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_ndl-0.1.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_event-0.1.18 spec/dummy/db/migrate/149_create_message_templates.rb
enju_message-0.1.15 db/migrate/149_create_message_templates.rb
enju_leaf-1.1.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.1.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.1.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.1.0 spec/dummy/db/migrate/149_create_message_templates.rb