Sha256: 7adbde226ded5b5d99195cc298ba68a27a52ce9d69e77c7656e469bbc89cd966

Contents?: true

Size: 273 Bytes

Versions: 14

Compression:

Stored size: 273 Bytes

Contents

class CreateProclaimImages < ActiveRecord::Migration
	def change
		create_table :proclaim_images do |t|
			t.belongs_to :post, index: true
			t.string :image

			t.timestamps null: false
		end

		add_foreign_key :proclaim_images, :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/20141222224905_create_proclaim_images.rb
proclaim-0.5.5 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.5.3 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.5.2 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.5.1 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.5.0 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.4.0 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.3.1 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.3.0 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.2.4 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.2.2 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.2.1 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.2.0 db/migrate/20141222224905_create_proclaim_images.rb
proclaim-0.1.3 db/migrate/20141222224905_create_proclaim_images.rb