Sha256: 02ed686f1a25edb3dbb4eb5b9383d41f7c85b9062b8afb0dad92a9276d2f98d7

Contents?: true

Size: 321 Bytes

Versions: 14

Compression:

Stored size: 321 Bytes

Contents

class CreateProclaimComments < ActiveRecord::Migration
	def change
		create_table :proclaim_comments do |t|
			t.belongs_to :post, index: true
			t.integer :parent_id

			t.string :author
			t.text :body

			t.timestamps null: false
		end

		add_foreign_key :proclaim_comments, :proclaim_posts, column: :post_id
	end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
proclaim-0.5.6 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.5.5 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.5.3 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.5.2 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.5.1 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.5.0 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.4.0 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.3.1 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.3.0 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.2.4 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.2.2 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.2.1 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.2.0 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.1.3 db/migrate/20141114235359_create_proclaim_comments.rb