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-7.9.0 db/migrate/20150405202002_create_logs.rb
udongo-7.8.1 db/migrate/20150405202002_create_logs.rb
udongo-7.8.0 db/migrate/20150405202002_create_logs.rb
udongo-7.7.2 db/migrate/20150405202002_create_logs.rb
udongo-7.7.1 db/migrate/20150405202002_create_logs.rb
udongo-7.7.0 db/migrate/20150405202002_create_logs.rb
udongo-7.6.2 db/migrate/20150405202002_create_logs.rb
udongo-7.6.1 db/migrate/20150405202002_create_logs.rb
udongo-7.6.0 db/migrate/20150405202002_create_logs.rb
udongo-7.5.1 db/migrate/20150405202002_create_logs.rb
udongo-7.5.0 db/migrate/20150405202002_create_logs.rb
udongo-7.4.2 db/migrate/20150405202002_create_logs.rb
udongo-7.4.1 db/migrate/20150405202002_create_logs.rb
udongo-7.4.0 db/migrate/20150405202002_create_logs.rb
udongo-7.3.5 db/migrate/20150405202002_create_logs.rb
udongo-7.3.4 db/migrate/20150405202002_create_logs.rb
udongo-7.3.3 db/migrate/20150405202002_create_logs.rb
udongo-7.3.2 db/migrate/20150405202002_create_logs.rb
udongo-7.3.1 db/migrate/20150405202002_create_logs.rb
udongo-7.2.1 db/migrate/20150405202002_create_logs.rb