Skip to content
Snippets Groups Projects
Commit 52224940 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Create participants table

parent 9f166a86
No related branches found
No related tags found
No related merge requests found
class CreateParticipants < ActiveRecord::Migration
def change
create_table :participants do |t|
t.integer :target_id, null: false
t.string :target_type, null: false
t.integer :user_id, null: false
t.timestamps
end
end
end
Loading
Loading
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
 
ActiveRecord::Schema.define(version: 20150620233230) do
ActiveRecord::Schema.define(version: 20150625153454) do
 
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Loading
Loading
@@ -330,6 +330,14 @@ ActiveRecord::Schema.define(version: 20150620233230) do
add_index "oauth_applications", ["owner_id", "owner_type"], name: "index_oauth_applications_on_owner_id_and_owner_type", using: :btree
add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree
 
create_table "participants", force: true do |t|
t.integer "target_id", null: false
t.string "target_type", null: false
t.integer "user_id", null: false
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "project_import_data", force: true do |t|
t.integer "project_id"
t.text "data"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment