I'm using tinytds to connect to a ms-sqlserver database. I've noticed that db:migrate will work as long as there isn't a table already in my database. Once I try to make changes to an object and replicate to the database using db:migrate
I get the error below.
TinyTds::Error: There is already an object named 'apples' in the database.: CREATE TABLE [apples] ([id] int NOT NULL IDENTITY(1,1) PRIMARY KEY, [color] nvarchar(50), [price] nvarchar(50), [created_at] datetime NOT NULL, [updated_at] datetime NOT NULL) /var/lib/gems/1.9.1/gems/activerecord-sqlserver-adapter-3.2.10/lib/active_record/connection_adapters/sqlserver/database_statements.rb:360:in `do'
I'm not sure if the problem is that my database is incorrectly configured or that my rails project is. If anyone could provide any guidance I would greatly appreciate it! Thanks!