Sha256: fc29a55e67be5640dd3f1c2c3b879176a4d39efbb04306a676dc4ee7d0760c08

Contents?: true

Size: 313 Bytes

Versions: 72

Compression:

Stored size: 313 Bytes

Contents

class CreateLogs < ActiveRecord::Migration
  def change
    create_table :logs do |t|
      t.string :category
      t.integer :loggable_id
      t.string :loggable_type
      t.text :content

      t.timestamps null: false
    end

    add_index :logs, :loggable_id
    add_index :logs, :loggable_type
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
udongo-6.3.1 db/migrate/20150405202002_create_logs.rb
udongo-6.3.0 db/migrate/20150405202002_create_logs.rb
udongo-6.2.1 db/migrate/20150405202002_create_logs.rb
udongo-6.2.0 db/migrate/20150405202002_create_logs.rb
udongo-6.1.0 db/migrate/20150405202002_create_logs.rb
udongo-6.0.0 db/migrate/20150405202002_create_logs.rb
udongo-5.9.0 db/migrate/20150405202002_create_logs.rb
udongo-5.8.0 db/migrate/20150405202002_create_logs.rb
udongo-5.7.0 db/migrate/20150405202002_create_logs.rb
udongo-5.6.0 db/migrate/20150405202002_create_logs.rb
udongo-5.5.0 db/migrate/20150405202002_create_logs.rb
udongo-5.4.0 db/migrate/20150405202002_create_logs.rb
udongo-5.3.1 db/migrate/20150405202002_create_logs.rb
udongo-5.3.0 db/migrate/20150405202002_create_logs.rb
udongo-5.2.0 db/migrate/20150405202002_create_logs.rb
udongo-5.1.0 db/migrate/20150405202002_create_logs.rb
udongo-5.0.2 db/migrate/20150405202002_create_logs.rb
udongo-5.0.1 db/migrate/20150405202002_create_logs.rb
udongo-5.0.0 db/migrate/20150405202002_create_logs.rb
udongo-4.0.0 db/migrate/20150405202002_create_logs.rb