Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
- Defined in:
- lib/productize.rb
Instance Method Summary collapse
Instance Method Details
#initialize_schema_information ⇒ Object
58 59 60 61 62 63 64 65 |
# File 'lib/productize.rb', line 58 def initialize_schema_information begin execute "CREATE TABLE schema_info (version #{type_to_sql(:integer)}, site_version #{type_to_sql(:integer)})" execute "INSERT INTO schema_info (version, site_version) VALUES(0, 0)" rescue ActiveRecord::StatementInvalid # Schema has been intialized end end |