diff --git a/db/migrate/20180322155011_add_author_to_plume_articles.rb b/db/migrate/20180322155011_add_author_to_plume_articles.rb new file mode 100644 index 0000000..4af6a88 --- /dev/null +++ b/db/migrate/20180322155011_add_author_to_plume_articles.rb @@ -0,0 +1,5 @@ +class AddAuthorToPlumeArticles < ActiveRecord::Migration + def change + add_column :plume_articles, :author, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index e19f9b5..530474e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180322141536) do +ActiveRecord::Schema.define(version: 20180322155011) do create_table "admins", force: true do |t| t.string "email", default: "", null: false @@ -680,6 +680,7 @@ ActiveRecord::Schema.define(version: 20180322141536) do t.string "article_type" t.datetime "created_at" t.datetime "updated_at" + t.string "author" end add_index "plume_articles", ["plume_cat_id"], name: "index_plume_articles_on_plume_cat_id", using: :btree