terrarum 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown
CHANGED
@@ -30,7 +30,7 @@ You can also override the default model names for both generators:
|
|
30
30
|
|
31
31
|
## Authors
|
32
32
|
|
33
|
-
**Tanel Suurhans** (<http://twitter.com/tanelsuurhans>)
|
33
|
+
**Tanel Suurhans** (<http://twitter.com/tanelsuurhans>)
|
34
34
|
**Tarmo Lehtpuu** (<http://twitter.com/tarmolehtpuu>)
|
35
35
|
|
36
36
|
## License
|
@@ -3,6 +3,6 @@ class <%= class_name %> < <%= parent_class_name.classify %>
|
|
3
3
|
scope :code, lambda { |code| where(:code => code.to_s) }
|
4
4
|
|
5
5
|
validates :code, :presence => true, :length => { :maximum => 5 }, :uniqueness => true
|
6
|
-
validates :name, :presence => true, :
|
6
|
+
validates :name, :presence => true, :length => { :maximum => 100 }
|
7
7
|
|
8
8
|
end
|
@@ -939,8 +939,8 @@ class <%= migration_class_name %> < ActiveRecord::Migration
|
|
939
939
|
|
940
940
|
default_language = <%= class_name %>.find_by_name('English')
|
941
941
|
|
942
|
-
execute("UPDATE shops SET language_id = #{
|
943
|
-
execute("ALTER TABLE shops ALTER COLUMN language_id SET DEFAULT #{
|
942
|
+
execute("UPDATE shops SET language_id = #{default_language.id}")
|
943
|
+
execute("ALTER TABLE shops ALTER COLUMN language_id SET DEFAULT #{default_language.id}")
|
944
944
|
execute("ALTER TABLE shops ALTER COLUMN language_id SET NOT NULL")
|
945
945
|
|
946
946
|
add_foreign_key :shops, :language_id, :name => "shops_language_id_fk"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tanel Suurhans
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-03-17 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -61,8 +61,8 @@ homepage: http://github.com/perfectline/terrarum/tree/master
|
|
61
61
|
licenses: []
|
62
62
|
|
63
63
|
post_install_message:
|
64
|
-
rdoc_options:
|
65
|
-
|
64
|
+
rdoc_options: []
|
65
|
+
|
66
66
|
require_paths:
|
67
67
|
- lib
|
68
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|