Sha256: ad63fa292cea5ecf63c4905861ba666fc1ae4503878bf7155faaf2af3ee359b6

Contents?: true

Size: 576 Bytes

Versions: 4

Compression:

Stored size: 576 Bytes

Contents

class CreateNippoCoreGroupMemberRelations < ActiveRecord::Migration[5.0]
  def change
    create_table :nippo_core_group_member_relations 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.integer :authentication, null: false, default: 0
      t.integer :accepter_id
      t.foreign_key :nippo_core_users, column: :accepter_id
      t.datetime :accepted_at

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nippo_core-1.0.2 db/migrate/20170420155712_create_nippo_core_group_member_relations.rb
nippo_core-1.0.1 db/migrate/20170420155712_create_nippo_core_group_member_relations.rb
nippo_core-1.0.0 db/migrate/20170420155712_create_nippo_core_group_member_relations.rb
nippo_core-0.3.0 db/migrate/20170420155712_create_nippo_core_group_member_relations.rb