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_message-0.2.2 db/migrate/149_create_message_templates.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.2.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_seed-0.2.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_grid-0.2.0 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_event-0.2.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_message-0.2.1 db/migrate/149_create_message_templates.rb
enju_subject-0.2.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/149_create_message_templates.rb