Sha256: 25e5310f5942bd28a7c1a176a0260887cff23dd742dd7717c823348a73028f0f
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
class DraftingMigration < ActiveRecord::Migration def self.up create_table :drafts do |t| t.string :target_type, :null => false t.references :user t.references :parent, :polymorphic => true, :index => true t.binary :data, :limit => 16777215, :null => false t.datetime :updated_at, :null => false end add_index :drafts, [:user_id, :target_type] end def self.down drop_table :drafts end end
Version data entries
4 entries across 4 versions & 1 rubygems