tkh_content 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.1.2
6
+
7
+ * Refactored generation of short_title attribute. Moved it ot the create_pages migration to avoid conflict in globalize3.
8
+
5
9
 
6
10
  ## 0.1.1
7
11
 
@@ -20,7 +20,6 @@ module TkhContent
20
20
  migration_template "create_pages.rb", "db/migrate/create_pages.rb"
21
21
  migration_template "add_author_to_pages.rb", "db/migrate/add_author_to_pages.rb"
22
22
  migration_template "add_parent_id_to_pages.rb", "db/migrate/add_parent_id_to_pages.rb"
23
- migration_template "add_short_title_to_pages.rb", "db/migrate/add_short_title_to_pages.rb"
24
23
  end
25
24
 
26
25
  end
@@ -10,7 +10,7 @@ class CreatePages < ActiveRecord::Migration
10
10
  t.timestamps
11
11
  end
12
12
  add_index :pages, :published_at
13
- Page.create_translation_table! :title => :string, :description => :text, :body => :text
13
+ Page.create_translation_table! :title => :string, :short_title => :string, :description => :text, :body => :text
14
14
  end
15
15
 
16
16
  def self.down
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -135,7 +135,6 @@ files:
135
135
  - lib/generators/tkh_content/create_or_update_migrations/create_or_update_migrations_generator.rb
136
136
  - lib/generators/tkh_content/create_or_update_migrations/templates/add_author_to_pages.rb
137
137
  - lib/generators/tkh_content/create_or_update_migrations/templates/add_parent_id_to_pages.rb
138
- - lib/generators/tkh_content/create_or_update_migrations/templates/add_short_title_to_pages.rb
139
138
  - lib/generators/tkh_content/create_or_update_migrations/templates/create_pages.rb
140
139
  - lib/tasks/tkh_content_tasks.rake
141
140
  - lib/tkh_content/version.rb
@@ -188,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
187
  version: '0'
189
188
  segments:
190
189
  - 0
191
- hash: -2576848684436899421
190
+ hash: 2751770441270569209
192
191
  required_rubygems_version: !ruby/object:Gem::Requirement
193
192
  none: false
194
193
  requirements:
@@ -197,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
196
  version: '0'
198
197
  segments:
199
198
  - 0
200
- hash: -2576848684436899421
199
+ hash: 2751770441270569209
201
200
  requirements: []
202
201
  rubyforge_project:
203
202
  rubygems_version: 1.8.23
@@ -1,6 +0,0 @@
1
- class AddShortTitleToPages < ActiveRecord::Migration
2
- def change
3
- add_column :pages, :short_title, :string
4
- add_column :page_translations, :short_title, :string
5
- end
6
- end