Feature: Label APIs (#931)

This commit is contained in:
Sojan Jose
2020-06-07 11:17:13 +05:30
committed by GitHub
parent 915eefdc36
commit 3d84568a37
15 changed files with 196 additions and 37 deletions

View File

@@ -0,0 +1,13 @@
class CreateLabels < ActiveRecord::Migration[6.0]
def change
create_table :labels do |t|
t.string :title
t.text :description
t.string :color
t.boolean :show_on_sidebar
t.references :account, index: true
t.timestamps
end
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_05_22_115645) do
ActiveRecord::Schema.define(version: 2020_06_06_132552) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@@ -256,6 +256,17 @@ ActiveRecord::Schema.define(version: 2020_05_22_115645) do
t.index ["name", "created_at"], name: "index_installation_configs_on_name_and_created_at", unique: true
end
create_table "labels", force: :cascade do |t|
t.string "title"
t.text "description"
t.string "color"
t.boolean "show_on_sidebar"
t.bigint "account_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["account_id"], name: "index_labels_on_account_id"
end
create_table "messages", id: :serial, force: :cascade do |t|
t.text "content"
t.integer "account_id", null: false