I am trying to create a Active Record tableless Model. My user.rb looks like this
class User < ActiveRecord::Base
  class_inheritable_accessor :columns
  def self.columns
    @columns ||= [];
  end
  def self.column(name, sql_type = nil, default = nil, null = true)
    columns << ActiveRecord::ConnectionAdapters::Column.new(
      name.to_s,
      default,
      sql_type.to_s,
      null
    )
  end
  column :name, :text
  column :exception, :text
  serialize :exception      
end
When creating the new object in controller
@user = User.new
I am getting the error
Mysql2::Error: Table 'Sampledb.users' doesn't exist: SHOW FIELDS FROM users
 
     
     
     
     
     
     
     
     
    