Skip to content

Commit

Permalink
Replace size with text in sequel spec schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Sep 17, 2019
1 parent fe35e57 commit f809817
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/sequel/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def migrate(*)
String :locale, allow_null: false
String :title
String :subtitle
String :content, size: 65535
String :content, text: true
DateTime :created_at, allow_null: false
DateTime :updated_at, allow_null: false
end
Expand Down Expand Up @@ -95,10 +95,10 @@ def migrate(*)

DB.create_table? :comments do
primary_key :id
String :content_en, size: 65535
String :content_ja, size: 65535
String :content_pt_br, size: 65535
String :content_ru, size: 65535
String :content_en, text: true
String :content_ja, text: true
String :content_pt_br, text: true
String :content_ru, text: true
String :author_en
String :author_ja
String :author_pt_br
Expand All @@ -111,8 +111,8 @@ def migrate(*)

DB.create_table? :serialized_posts do
primary_key :id
String :my_title_i18n, size: 65535
String :my_content_i18n, size: 65535
String :my_title_i18n, text: true
String :my_content_i18n, text: true
TrueClass :published
DateTime :created_at, allow_null: false
DateTime :updated_at, allow_null: false
Expand Down

0 comments on commit f809817

Please sign in to comment.