Sha256: 693401af456773946f6b6b7d3288ebc838c35c6c8f27bcf89cc16e6612f0e14f
Contents?: true
Size: 389 Bytes
Versions: 16
Compression:
Stored size: 389 Bytes
Contents
class CreateActivitiesTable < ActiveRecord::Migration def self.up create_table :activities do |t| t.column :user_id, :integer, :limit => 10 t.column :action, :string, :limit => 50 t.column :item_id, :integer, :limit => 10 t.column :item_type, :string t.column :created_at, :datetime end end def self.down drop_table :activities end end
Version data entries
16 entries across 8 versions & 1 rubygems