2013-08-09 14:33:44 +02:00
2013-08-09 14:32:43 +02:00
2013-08-09 14:33:44 +02:00
2013-06-26 15:05:20 +02:00
2013-07-18 20:59:46 +02:00
2013-06-26 15:05:20 +02:00
2013-06-26 09:00:08 +02:00
2013-06-26 09:00:08 +02:00
2013-06-26 09:00:08 +02:00
2013-07-18 20:59:46 +02:00
2013-08-08 23:03:27 +02:00
2013-07-18 20:59:46 +02:00
2013-06-26 09:00:08 +02:00
2013-06-26 09:00:08 +02:00

ActiveRecord Without Rails

Just a simple example of using ActiveRecord migrations without Rails

tasks you can do:

  • rake db:create
  • rake db:migrate
  • rake db:drop

Or, you can run the thing to show that it'll connect

ruby ar-no-rails

Output:

Count of Pages: 0

Lastly, you can IRB it to do stuff:

$ irb

>> require "./ar-no-rails"
=> true
>> Page.new
=> #<Page id: nil, content: nil, published: false>
>> Page.create content: "the-content"
=> #<Page id: 1, content: "the-content", published: false>

None. Really.

Description
Read and store data from my smartmeter
Readme MIT 211 KiB
Languages
Ruby 93.5%
Dockerfile 2.9%
Python 2.4%
Shell 1.2%