Skip to content

Commit dcfa632

Browse files
committed
Install latest Alchemy migrations into dummy app
1 parent 38ce417 commit dcfa632

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This migration comes from alchemy (originally 20180519204655)
2+
class AddFixedToAlchemyElements < ActiveRecord::Migration[5.0]
3+
def change
4+
add_column :alchemy_elements, :fixed, :boolean, default: false, null: false
5+
add_index :alchemy_elements, :fixed
6+
end
7+
end

spec/dummy/db/schema.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 2018_03_01_103350) do
13+
ActiveRecord::Schema.define(version: 2019_04_24_075603) do
1414

1515
create_table "alchemy_attachments", force: :cascade do |t|
1616
t.string "name"
@@ -60,7 +60,9 @@
6060
t.integer "updater_id"
6161
t.integer "cell_id"
6262
t.integer "parent_element_id"
63+
t.boolean "fixed", default: false, null: false
6364
t.index ["cell_id"], name: "index_alchemy_elements_on_cell_id"
65+
t.index ["fixed"], name: "index_alchemy_elements_on_fixed"
6466
t.index ["page_id", "parent_element_id"], name: "index_alchemy_elements_on_page_id_and_parent_element_id"
6567
t.index ["page_id", "position"], name: "index_elements_on_page_id_and_position"
6668
end

0 commit comments

Comments
 (0)