Sha256: 97ec353f1b9913add9c281e449f56214998604a208a8c25b38fa975c9495e9b5

Contents?: true

Size: 490 Bytes

Versions: 72

Compression:

Stored size: 490 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.integer :commentable_id
      t.string :commentable_type
      t.string :locale
      t.integer :parent_id
      t.string :author
      t.string :email
      t.string :website
      t.text :message
      t.string :status
      t.boolean :marked_as_spam

      t.timestamps null: false
    end

    add_index :comments, :commentable_id
    add_index :comments, :commentable_type
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
udongo-6.3.1 db/migrate/20150411152619_create_comments.rb
udongo-6.3.0 db/migrate/20150411152619_create_comments.rb
udongo-6.2.1 db/migrate/20150411152619_create_comments.rb
udongo-6.2.0 db/migrate/20150411152619_create_comments.rb
udongo-6.1.0 db/migrate/20150411152619_create_comments.rb
udongo-6.0.0 db/migrate/20150411152619_create_comments.rb
udongo-5.9.0 db/migrate/20150411152619_create_comments.rb
udongo-5.8.0 db/migrate/20150411152619_create_comments.rb
udongo-5.7.0 db/migrate/20150411152619_create_comments.rb
udongo-5.6.0 db/migrate/20150411152619_create_comments.rb
udongo-5.5.0 db/migrate/20150411152619_create_comments.rb
udongo-5.4.0 db/migrate/20150411152619_create_comments.rb
udongo-5.3.1 db/migrate/20150411152619_create_comments.rb
udongo-5.3.0 db/migrate/20150411152619_create_comments.rb
udongo-5.2.0 db/migrate/20150411152619_create_comments.rb
udongo-5.1.0 db/migrate/20150411152619_create_comments.rb
udongo-5.0.2 db/migrate/20150411152619_create_comments.rb
udongo-5.0.1 db/migrate/20150411152619_create_comments.rb
udongo-5.0.0 db/migrate/20150411152619_create_comments.rb
udongo-4.0.0 db/migrate/20150411152619_create_comments.rb