Commit 740c2361 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'add-migration' into 'master'

Add migration to rename column light_logo -> header_logo

Also removes dark_logo which was unused

See merge request !233
parents 4985e69f d2e97b5d
class RenameHeaderFieldOnAppearrance < ActiveRecord::Migration
def change
rename_column :appearances, :light_logo, :header_logo
remove_column :appearances, :dark_logo
end
end
......@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160222153918) do
ActiveRecord::Schema.define(version: 20160302141317) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
......@@ -27,10 +27,11 @@ ActiveRecord::Schema.define(version: 20160222153918) do
create_table "appearances", force: :cascade do |t|
t.string "title"
t.text "description"
t.string "header_logo"
t.string "logo"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "updated_by"
t.datetime "created_at"
t.datetime "updated_at"
t.string "header_logo"
end
create_table "application_settings", force: :cascade do |t|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment