Add columns to widget cards

This commit is contained in:
decabeza
2019-01-31 14:38:14 +01:00
parent 9475a0c6ee
commit b8bfccd2ba
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddColumnsToWidgetCards < ActiveRecord::Migration
def change
add_column :widget_cards, :columns, :integer, default: 4
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20190103132925) do
ActiveRecord::Schema.define(version: 20190131122858) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -1526,6 +1526,7 @@ ActiveRecord::Schema.define(version: 20190103132925) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "site_customization_page_id"
t.integer "columns", default: 4
end
add_index "widget_cards", ["site_customization_page_id"], name: "index_widget_cards_on_site_customization_page_id", using: :btree