Sha256: 10f178a8eb41c1832c9114dccf0985e14a81b4ad14fd2cfd107e5e6258483cda

Contents?: true

Size: 443 Bytes

Versions: 6

Compression:

Stored size: 443 Bytes

Contents

class CreateNippoCoreReports < ActiveRecord::Migration[5.0]
  def change
    create_table :nippo_core_reports do |t|
      t.integer :user_id, null: false, index: true
      t.foreign_key :nippo_core_users, column: :user_id
      t.integer :group_id, null: false, index: true
      t.foreign_key :nippo_core_groups, column: :group_id
      t.date :reported_at, null: false
      t.text :body, null: false

      t.timestamps
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nippo_core-1.0.2 db/migrate/20170420110055_create_nippo_core_reports.rb
nippo_core-1.0.1 db/migrate/20170420110055_create_nippo_core_reports.rb
nippo_core-1.0.0 db/migrate/20170420110055_create_nippo_core_reports.rb
nippo_core-0.3.0 db/migrate/20170420110055_create_nippo_core_reports.rb
nippo_core-0.2.0 db/migrate/20170420110055_create_nippo_core_reports.rb
nippo_core-0.1.0 db/migrate/20170420110055_create_nippo_core_reports.rb