ruby_gallery 0.3.0.3 → 0.3.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0.3.0.
|
1
|
+
0.3.0.4
|
2
2
|
|
@@ -1,13 +1,10 @@
|
|
1
1
|
class RubyGalleryCreateAlbumPhotos < ActiveRecord::Migration
|
2
|
-
|
3
|
-
|
4
2
|
def self.up
|
5
3
|
create_table :album_photos do |b|
|
6
4
|
b.belongs_to :photoable, polymorphic: true
|
7
5
|
b.integer :position, default: 0
|
8
6
|
b.timestamps
|
9
7
|
end
|
10
|
-
|
11
8
|
add_index :album_photos, [:photoable_id, :photoable_type]
|
12
9
|
end
|
13
10
|
|
@@ -1,11 +1,9 @@
|
|
1
1
|
class RubyGalleryAddColumnsToAlbumPhotos < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
|
-
|
4
|
-
t.has_attached_file, :photo
|
5
|
-
end
|
3
|
+
add_attachment :album_photos, :photo
|
6
4
|
end
|
7
5
|
|
8
6
|
def self.down
|
9
|
-
|
7
|
+
remove_attachment :album_photos, :photo
|
10
8
|
end
|
11
9
|
end
|
data/ruby_gallery.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_gallery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0.
|
4
|
+
version: 0.3.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
segments:
|
216
216
|
- 0
|
217
|
-
hash: -
|
217
|
+
hash: -4020546132248416720
|
218
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
219
219
|
none: false
|
220
220
|
requirements:
|