Sha256: 8f92855ccb95aa5b261f2e8696cb4ff0bfddc1eb5c0197ce38115bf22244c4af

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

class CreateCopywritings < ActiveRecord::Migration

  def self.up
    create_table :copywriting_phrases do |t|
      t.string :name
      t.text :default
      t.text :value
      t.string :scope
      t.integer :page_id

      t.timestamps
    end

    add_index :copywriting_phrases, [:name, :scope]
  end

  def self.down
    Refinery::UserPlugin.destroy_all({:name => "refinerycms_copywriting"})

    drop_table :copywriting_phrases
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-copywriting-2.0.3 db/migrate/1_create_copywritings.rb
refinerycms-copywriting-2.0.2 db/migrate/1_create_copywritings.rb
refinerycms-copywriting-2.0.1 db/migrate/1_create_copywritings.rb
refinerycms-copywriting-2.0.0 db/migrate/1_create_copywritings.rb