Sha256: 682c299bc9406684a8282d83a4795557578f8993dcad5645df93778f66bb9c79

Contents?: true

Size: 477 Bytes

Versions: 7

Compression:

Stored size: 477 Bytes

Contents

class AddLogsTable < ActiveRecord::Migration[4.2]
  
  def change
    create_table :logs do |t|
      t.string :name
      t.text :description
      
      t.datetime :created_on
    end
    
    create_table :log_entries do |t|
      t.integer :log_id, null: false
      
      t.string :type, null: false
      t.text :description
      t.text :data
      
      t.datetime :created_on
    end
    add_index "log_entries", ["type"], name: "IDX_log_entries_type"
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
imagine_cms-5.2.6 db/migrate/20121115083748_add_logs_table.rb
imagine_cms-5.2.5 db/migrate/20121115083748_add_logs_table.rb
imagine_cms-5.2.4 db/migrate/20121115083748_add_logs_table.rb
imagine_cms-5.2.3 db/migrate/20121115083748_add_logs_table.rb
imagine_cms-5.2.2 db/migrate/20121115083748_add_logs_table.rb
imagine_cms-5.2.1 db/migrate/20121115083748_add_logs_table.rb
imagine_cms-5.2.0 db/migrate/20121115083748_add_logs_table.rb