Sha256: 37420be4f1ac98b60afabfa2d94e6a141acec68e854e0165985c97c5d6afe003
Contents?: true
Size: 589 Bytes
Versions: 7
Compression:
Stored size: 589 Bytes
Contents
class CreateTandemContents < ActiveRecord::Migration def change create_table :tandem_contents do |t| t.integer :page_id, :null => false t.string :type, :null => false t.string :tag, :null => false t.text :content t.text :details t.string :link_url t.string :link_target t.integer :attachment_id t.string :attachment_type, :default => "Tandem::Image" t.integer :image_id t.timestamps end add_index :tandem_contents, :page_id add_index :tandem_contents, [:page_id, :type, :tag], :unique => true end end
Version data entries
7 entries across 7 versions & 1 rubygems