Skip to content

Commit c533b8f

Browse files
author
Mattia Roccoberton
committed
test: add missing state column for posts
1 parent 9c74080 commit c533b8f

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Gemfile.lock
1414
/spec/dummy_rails/log
1515
/spec/dummy_rails/tmp
1616
/spec/dummy_rails/db/*.sqlite3
17+
/spec/dummy_rails/db/*.sqlite3-*

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
66
gemspec
77

88
group :development, :test do
9-
gem 'rails', '~> 7.0'
9+
gem 'rails', '~> 7.1'
1010

11-
gem 'sqlite3'
11+
gem 'sqlite3', '< 2.0'
1212
gem 'tilt'
1313
gem 'warden'
1414
gem 'webrick'

spec/dummy_rails/db/migrate/20180607053739_create_posts.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
class CreatePosts < ActiveRecord::Migration[5.2]
44
def change
55
create_table :posts do |t|
6+
t.integer :state
67
t.string :title
78
t.text :description
89
t.belongs_to :author, foreign_key: true

spec/dummy_rails/db/schema.rb

Lines changed: 2 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[7.0].define(version: 2018_06_07_053857) do
13+
ActiveRecord::Schema[7.1].define(version: 2018_06_07_053857) do
1414
create_table "authors", force: :cascade do |t|
1515
t.string "name"
1616
t.integer "age"
@@ -29,6 +29,7 @@
2929
end
3030

3131
create_table "posts", force: :cascade do |t|
32+
t.integer "state"
3233
t.string "title"
3334
t.text "description"
3435
t.integer "author_id"

0 commit comments

Comments
 (0)