Sha256: d3a3761860b68eeafd3aeae67fdfd203ae4190b4b1f95fdd98388d1963bf9591
Contents?: true
Size: 610 Bytes
Versions: 15
Compression:
Stored size: 610 Bytes
Contents
class CreateActivitiesTable < ActiveRecord::Migration def self.up create_table :activities, :force => true do |t| t.references :site t.references :section t.references :author, :polymorphic => true t.string :author_name, :limit => 40 t.string :author_email, :limit => 40 t.string :author_homepage t.string :actions t.integer :object_id t.string :object_type, :limit => 15 t.text :object_attributes t.datetime :created_at, :null => false end end def self.down drop_table :activities end end
Version data entries
15 entries across 15 versions & 2 rubygems