Sha256: 1f26547c340f52e4cca6bd7764ba92f6b5e7020623f1b839a1871c65aa54cdce

Contents?: true

Size: 320 Bytes

Versions: 8

Compression:

Stored size: 320 Bytes

Contents

class CreateModerations < ActiveRecord::Migration
  def self.up
    create_table "moderations" do |t|
      t.references :moderatable, polymorphic: true
      t.text :data, :null => false
      t.text :data_display, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :moderations
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
the_moderator-0.1.7 lib/generators/the_moderator/install/templates/migration.rb
the_moderator-0.1.6 lib/generators/the_moderator/install/templates/migration.rb
the_moderator-0.1.5 lib/generators/the_moderator/install/templates/migration.rb
the_moderator-0.1.4 lib/generators/the_moderator/install/templates/migration.rb
the_moderator-0.1.3 lib/generators/the_moderator/install/templates/migration.rb
the_moderator-0.1.2 lib/generators/the_moderator/install/templates/migration.rb
the_moderator-0.1.1 lib/generators/the_moderator/install/templates/migration.rb
the_moderator-0.1.0 lib/generators/the_moderator/install/templates/migration.rb