Sha256: 68d4c52e899332e78d3dd266175468ba9233a42729a33e9d528156b3bba6b3b9

Contents?: true

Size: 268 Bytes

Versions: 14

Compression:

Stored size: 268 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
      t.integer :commentable_id
      t.string :commentable_type
      t.boolean :open

      t.timestamps
    end
  end

  def self.down
    drop_table :comments
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/db/migrate/create_comments.rb
squeezer-0.2.1 lib/generators/squeezer/templates/db/migrate/comments.rb
squeezer-0.2.0 lib/generators/squeezer/templates/db/migrate/create_comments.rb
squeezer-0.2.0 lib/generators/squeezer/templates/db/migrate/comments.rb
squeezer-0.1.11 lib/generators/squeezer/templates/db/migrate/comments.rb
squeezer-0.1.11 lib/generators/squeezer/templates/db/migrate/create_comments.rb
squeezer-0.1.7 lib/generators/squeezer/templates/db/migrate/comments.rb
squeezer-0.1.7 lib/generators/squeezer/templates/db/migrate/create_comments.rb
squeezer-0.1.6 lib/generators/squeezer/templates/db/migrate/comments.rb
squeezer-0.1.6 lib/generators/squeezer/templates/db/migrate/create_comments.rb
squeezer-0.1.5 lib/generators/squeezer/templates/db/migrate/create_comments.rb
squeezer-0.1.5 lib/generators/squeezer/templates/db/migrate/comments.rb
squeezer-0.1.4 lib/generators/squeezer/templates/db/migrate/create_comments.rb
squeezer-0.1.4 lib/generators/squeezer/templates/db/migrate/comments.rb