Sha256: 1fb2275c087496adcc12c1141afc0aa4032858dde48fc3e830af0d6a22eedcc1
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
module Schemata #Influenced by devise's schema module. Methods defined here will be available within migartion files to apply a schema concept. module Schema # Provides a common set of address fields such as, street_address_1, street_address_2, city, state, zip_code and country as String fields. def addressable apply_schema :street_address_1, String apply_schema :street_address_2, String apply_schema :city, String apply_schema :state, String apply_schema :zip_code, String apply_schema :country, String end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schemata-0.1.0 | lib/schemata/schema/addressable.rb |
schemata-0.0.0 | lib/schemata/schema/addressable.rb |