Sha256: ff0fd58df0d0d4805889c53373fdc6684e9ee433207f811d508d4f2dac537dfe
Contents?: true
Size: 477 Bytes
Versions: 6
Compression:
Stored size: 477 Bytes
Contents
class CreateAdminNotes < ActiveRecord::Migration[4.2] def self.up create_table :admin_notes do |t| t.string :resource_id, :null => false t.string :resource_type, :null => false t.references :admin_user, :polymorphic => true t.text :body t.timestamps end add_index :admin_notes, [:resource_type, :resource_id] add_index :admin_notes, [:admin_user_type, :admin_user_id] end def self.down drop_table :admin_notes end end
Version data entries
6 entries across 6 versions & 2 rubygems